package com.jprocms.module.cms.api.dto;


import com.mzt.logapi.starter.annotation.DiffLogField;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 系统配置 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 */
@Data
public class GlobalConfigBaseVO {

    @Schema(description = "端口号")
    @DiffLogField(name = "端口号")
    private Integer port;

    @Schema(description = "栏目URL地址前缀")
    @DiffLogField(name = "栏目URL地址前缀")
    private String channelUrlPrefix;

    @Schema(description = "内容URL地址前缀")
    @DiffLogField(name = "内容URL地址前缀")
    private String contentUrlPrefix;

    @Schema(description = "HTML静态页访问前缀")
    @DiffLogField(name = "HTML静态页访问前缀")
    private String htmlPrefix;

    @Schema(description = "上传配置")
    @DiffLogField(name = "上传配置")
    private UploadConfig uploadConfig;

    @Schema(description = "账户安全配置")
    @DiffLogField(name = "账户安全配置")
    private SecurityConfig securityConfig;

    @Schema(description = "注册设置")
    @DiffLogField(name = "注册设置")
    private RegisterConfig registerConfig;

    @Schema(description = "邮箱配置")
    @DiffLogField(name = "邮箱配置")
    private EmailConfig emailConfig;

    @Schema(description = "其他配置")
    @DiffLogField(name = "其他配置")
    private OtherConfig otherConfig;

    @Schema(description = "访问后台限制IP配置")
    @DiffLogField(name = "访问后台限制IP配置")
    private AdminIpConfig adminIpConfig = new AdminIpConfig();

    @Schema(description = "上传存储点设置")
    @DiffLogField(name = "上传存储点设置")
    private Integer uploadStoreConfigId;

    @Schema(description = "HTML静态页存储点设置")
    @DiffLogField(name = "HTML静态页存储点设置")
    private Integer htmlStoreConfigId;

    @Schema(description = "模板存储配置ID")
    @DiffLogField(name = "模板存储配置ID")
    private Integer tplStoreConfigId;

    /**
     * 文件上传后缀黑名单
     */
    @Schema(description = "文件上传后缀黑名单")
    private String uploadsBlacklist = "";

    @Schema(description = "在线访客人数")
    private Integer uvCount;


}
